﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp5
{
    class Program
    {
        static void Main(string[] args)
        {
            //引用参数
            RefClass refClass = new RefClass();
            int num1 = 1234;
            Console.WriteLine(refClass.Judge(ref num1));

            int a = 2;
            int b = 3;
            Console.WriteLine(refClass.Add(ref a,ref b));

            //输出参数
            OutClass outClass = new OutClass();
            bool result;
            outClass.Judge(1234, out result);
            Console.WriteLine(result);

            int add;
            outClass.Add(2, 3, out add);
            Console.WriteLine(add);
        }
    }
}
